package com.bestdreamer.thread_join;

public class Demo1ThreadC extends Thread {

    private final Demo1ThreadB threadB;
    public Demo1ThreadC(Demo1ThreadB threadB){
        super();
        this.threadB = threadB;
    }

    @Override
    public void run() {
        threadB.bService();
    }
}
